<admintpl file="header" />
</head>
<body style="min-width: 800px;">
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('AdminComments/index')}">{:L('MERCH_ADMINCOMMENTS_INDEX')}</a></li>
        </ul>
        <form class="js-ajax-form" method="post">
            <div class="table-actions">
                <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminComments/check',array('check'=>1))}" data-subcheck="true">{:L('AUDIT')}</button>
                <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('AdminComments/check',array('uncheck'=>1))}" data-subcheck="true">{:L('CANCEL_AUDIT')}</button>
                <button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('AdminComments/delete')}" data-subcheck="true" data-msg="{:L('DELETE_CONFIRM_MESSAGE')}">{:L('DELETE')}</button>
            </div>
            <table class="table table-hover table-bordered table-list">
                <thead>
                    <tr>
                        <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                        <th width="50">ID</th>
                        <th width="100">{:L('NAME')}</th>
                        <th>{:L('CONTENT')}</th>
                        <th width="120">{:L('TIME')}</th>
                        <th width="50">{:L('STATUS')}</th>
                        <th width="80">{:L('ACTIONS')}</th>
                    </tr>
                </thead>
                <php>$status=array("1"=>L('AUDITED'),"0"=>L('NOT_AUDITED'));</php>
                <foreach name="comments" item="vo">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}"></td>
                    <td>{$vo.id}</td>
                    <td>{$vo.user_nicename}</td>
                    <td>{$vo.content}</td>
                    <td>{$vo.create_time}</td>
                    <td>{$status[$vo['status']]}</td>
                    <td>
                        <a href="{:U('AdminComments/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
                    </td>
                </tr>
                </foreach>
            </table>
            <div class="pagination">{$page}</div>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>